Attribute VB_Name = "Listpro20"
'----------------------------------------------------------
'
' File: LP.BAS
'
' Copyright (C) 1997 FarPoint Technologies.
' All rights reserved.
'
'----------------------------------------------------------

' Action property settings
Global Const LC_ACTION_SEARCH = 0
Global Const LC_ACTION_SELECTALL = 1
Global Const LC_ACTION_DESELECTALL = 2
Global Const LC_ACTION_CLEAR = 3
Global Const LC_ACTION_DELETEROW = 4
Global Const LC_ACTION_FORCEUPDATE = 5
Global Const LC_ACTION_CLEARSEARCHBUFFER = 6
Global Const LC_ACTION_INSERTCOL = 7
Global Const LC_ACTION_DELETECOL = 8
Global Const LC_ACTION_VIRTUALREFRESH = 9
Global Const LC_ACTION_INSERTGRP = 10
Global Const LC_ACTION_DELETEGRP = 11
Global Const LC_ACTION_CLONECOL = 12

' AlignH property settings
Global Const LC_ALIGNH_DEFAULT = 0
Global Const LC_ALIGNH_LEFT = 1
Global Const LC_ALIGNH_CENTER = 2
Global Const LC_ALIGNH_RIGHT = 3

' AlignV property settings
Global Const LC_ALIGNV_DEFAULT = 0
Global Const LC_ALIGNV_TOP = 1
Global Const LC_ALIGNV_CENTER = 2
Global Const LC_ALIGNV_BOTTOM = 3

' AllowColDragDrop property settings
Global Const LC_ALLOWCOLDRAGDROP_OFF = 0
Global Const LC_ALLOWCOLDRAGDROP_ALLCOLS = 1
Global Const LC_ALLOWCOLDRAGDROP_NONFROZENCOLS = 2

' AllowColResize property settings
Global Const LC_ALLOWCOLRESIZE_OFF = 0
Global Const LC_ALLOWCOLRESIZE_RESIZEHEADER = 1
Global Const LC_ALLOWCOLRESIZE_RESIZECOLORHEADER = 2

' AllowGrpColDragDrop property settings
Global Const LC_ALLOWGRPDRAGDROP_OFF = 0
Global Const LC_ALLOWGRPDRAGDROP_ALLGRPS = 1
Global Const LC_ALLOWGRPDRAGDROP_NONFROZENGRPS = 2

' AllowGrpResize property settings
Global Const LC_ALLOWGRPRESIZE_OFF = 0
Global Const LC_ALLOWGRPRESIZE_RESIZEHEADER = 1
Global Const LC_ALLOWGRPRESIZE_RESIZEGRPORHEADER = 2

' Appearance property settings
Global Const LC_APPEARANCE_CUSTOM = 0
Global Const LC_APPEARANCE_FLAT = 1
Global Const LC_APPEARANCE_3D = 2
Global Const LC_APPEARANCE_3D_W_BORDER = 3

' ApplyTo property settings
Global Const CBX_APPLYTO_BOTH = 0
Global Const CBX_APPLYTO_LISTONLY = 1
Global Const CBX_APPLYTO_EDITONLY = 2

' AutoSearch property settings
Global Const LC_AUTOSEARCH_NONE = 0
Global Const LC_AUTOSEARCH_SINGLE_CHAR = 1
Global Const LC_AUTOSEARCH_MULTIPLE_CHAR = 2
Global Const LC_AUTOSEARCH_SINGLE_GREATER = 3

' BorderDropShadow property settings
Global Const LC_BORDERDROPSHADOW_NONE = 0
Global Const LC_BORDERDROPSHADOW_ALWAYS = 1
Global Const LC_BORDERDROPSHADOW_ONFOCUS = 2

' BorderStyle property settings
Global Const LC_BORDERSTYLE_NO_BORDER = 0
Global Const LC_BORDERSTYLE_SINGLE_LINE = 1
Global Const LC_BORDERSTYLE_ROUNDED = 2
Global Const LC_BORDERSTYLE_DASH = 3
Global Const LC_BORDERSTYLE_DOT = 4
Global Const LC_BORDERSTYLE_DASH_DOT = 5
Global Const LC_BORDERSTYLE_DASH_DOT_DOT = 6

' ColMerge property settings
Global Const LC_COLMERGE_OFF = 0
Global Const LC_COLMERGE_ALWAYS = 1
Global Const LC_COLMERGE_RESTRICTED = 2

' ColSortDataType property settings
Global Const LC_COLSORTDATATYPE_TEXTNOCASE = 0
Global Const LC_COLSORTDATATYPE_TEXTCASE = 1
Global Const LC_COLSORTDATATYPE_INTEGER = 2
Global Const LC_COLSORTDATATYPE_FLOAT = 3

' ColSorted property settings
Global Const LC_COLSORTED_NONE = 0
Global Const LC_COLSORTED_ASCENDING = 1
Global Const LC_COLSORTED_DESCENDING = 2

' ColumnWidthScale property settings
Global Const LC_COLUMNWIDTHSCALE_TWIPS = 0
Global Const LC_COLUMNWIDTHSCALE_PIXELS = 1
Global Const LC_COLUMNWIDTHSCALE_AVG_CHAR_WIDTH = 2
Global Const LC_COLUMNWIDTHSCALE_MAX_CHAR_WIDTH = 3

' DataAutoSizeCols property settings
Global Const LC_DATAAUTOSIZECOLS_OFF = 0
Global Const LC_DATAAUTOSIZECOLS_MAXCOLWIDTH = 1
Global Const LC_DATAAUTOSIZECOLS_BESTGUESS = 2
Global Const LC_DATAAUTOSIZECOLS_HEADERWIDTH = 3

' DataSync property settings
Global Const CBX_DATASYNC_NONE = 0
Global Const CBX_DATASYNC_UPDATE_DATA = 1
Global Const CBX_DATASYNC_UPDATE_BOUND = 2
Global Const CBX_DATASYNC_UPDATE_BOTH = 3

' ExtendCol property settings
Global Const LC_EXTENDCOL_AUTO = 0
Global Const LC_EXTENDCOL_NO = 1
Global Const LC_EXTENDCOL_YES = 2

' ExtendRow property settings
Global Const LC_EXTENDROW_AUTO = 0
Global Const LC_EXTENDROW_NO = 1
Global Const LC_EXTENDROW_YES = 2

' HighestPrecedence property settings
Global Const LC_HIGHESTPRECEDENCE_ROW = 0
Global Const LC_HIGHESTPRECEDENCE_COL = 1
Global Const LC_HIGHESTPRECEDENCE_COMBINED = 2

' LineApplyTo property settings
Global Const LC_LINEAPPLYTO_DEFAULT = 0
Global Const LC_LINEAPPLYTO_ROWS = 1
Global Const LC_LINEAPPLYTO_COLS = 2
Global Const LC_LINEAPPLYTO_COLSH = 3

' LineStyle property settings
Global Const LC_LINESTYLE_DEFAULT = 0
Global Const LC_LINESTYLE_NONE = 1
Global Const LC_LINESTYLE_FLAT = 2
Global Const LC_LINESTYLE_LOWERED = 3
Global Const LC_LINESTYLE_RAISED = 4
Global Const LC_LINESTYLE_LOWERED_W_LINE = 5
Global Const LC_LINESTYLE_RAISED_W_LINE = 6

' List3DText property settings
Global Const LC_LIST3DTEXT_NONE = 0
Global Const LC_LIST3DTEXT_LOWERED = 1
Global Const LC_LIST3DTEXT_RAISED = 2
Global Const LC_LIST3DTEXT_LOWERED_W_SHADING = 3
Global Const LC_LIST3DTEXT_RAISED_W_SHADING = 4
Global Const LC_LIST3DTEXT_DEFAULT = 5

' ListApplyTo property settings
Global Const LC_LISTAPPLYTO_DEFAULT_ALL = 0
Global Const LC_LISTAPPLYTO_ALL_ROWS = 1
Global Const LC_LISTAPPLYTO_ALL_COLS = 2
Global Const LC_LISTAPPLYTO_ALL_GROUPS = 3
Global Const LC_LISTAPPLYTO_SEL_ROWS = 4
Global Const LC_LISTAPPLYTO_ODD_ROWS = 5
Global Const LC_LISTAPPLYTO_EVEN_ROWS = 6
Global Const LC_LISTAPPLYTO_COL_HEADERS = 7
Global Const LC_LISTAPPLYTO_GROUP_HEADERS = 8
Global Const LC_LISTAPPLYTO_SINGLE_COL_HEADER = 9
Global Const LC_LISTAPPLYTO_SINGLE_GROUP_HEADER = 10
Global Const LC_LISTAPPLYTO_SINGLE_GROUP = 11
Global Const LC_LISTAPPLYTO_SINGLE_ITEM = 12

' MultiLine property settings
Global Const LC_MULTILINE_DEFAULT = 0
Global Const LC_MULTILINE_SINGLE_LINE = 1
Global Const LC_MULTILINE_MULTIPLE_LINE = 2

' MultiSelect property settings
Global Const LBX_MULTISELECT_NONE = 0
Global Const LBX_MULTISELECT_SIMPLE = 1
Global Const LBX_MULTISELECT_EXTENDED = 2

' PictureAlignH property settings
Global Const LC_PICTUREALIGNH_DEFAULT = 0
Global Const LC_PICTUREALIGNH_LEFT = 1
Global Const LC_PICTUREALIGNH_CENTER = 2
Global Const LC_PICTUREALIGNH_RIGHT = 3
Global Const LC_PICTUREALIGNH_LEFT_OF_TEXT = 4
Global Const LC_PICTUREALIGNH_RIGHT_OF_TEXT = 5

' PictureAlignV property settings
Global Const LC_PICTUREALIGNV_DEFAULT = 0
Global Const LC_PICTUREALIGNV_TOP = 1
Global Const LC_PICTUREALIGNV_CENTER = 2
Global Const LC_PICTUREALIGNV_BOTTOM = 3
Global Const LC_PICTUREALIGNV_TOP_OF_TEXT = 4
Global Const LC_PICTUREALIGNV_BOTTOM_OF_TEXT = 5

' RowMerge property settings
Global Const LC_ROWMERGE_OFF = 0
Global Const LC_ROWMERGE_ALWAYS = 1
Global Const LC_ROWMERGE_RESTRICTED = 2

' ScrollBarH property settings
Global Const LC_SCROLLBARH_SHOW = 0
Global Const LC_SCROLLBARH_SHOW_WHEN_NEEDED = 1
Global Const LC_SCROLLBARH_SHOW_DISABLED = 2
Global Const LC_SCROLLBARH_HIDE = 3

' ScrollBarV property settings
Global Const LC_SCROLLBARV_SHOW = 0
Global Const LC_SCROLLBARV_SHOW_WHEN_NEEDED = 1
Global Const LC_SCROLLBARV_SHOW_DISABLED = 2
Global Const LC_SCROLLBARV_HIDE = 3

' ScrollHScale property settings
Global Const LC_SCROLLHSCALE_TWIPS = 0
Global Const LC_SCROLLHSCALE_PIXELS = 1
Global Const LC_SCROLLHSCALE_AVG_CHAR = 2
Global Const LC_SCROLLHSCALE_MAX_CHAR = 3
Global Const LC_SCROLLHSCALE_COLUMN = 4
Global Const LC_SCROLLHSCALE_TOP_GROUP = 5
Global Const LC_SCROLLHSCALE_BOTTOM_GROUP = 6

' SearchMethod property settings
Global Const LC_SEARCHMETHOD_EXACT_MATCH = 0
Global Const LC_SEARCHMETHOD_GREATER_OR_EQUAL = 1
Global Const LC_SEARCHMETHOD_PARTIAL_MATCH = 2

' Sorted property settings
Global Const LC_SORTED_NONE = 0
Global Const LC_SORTED_ASCENDING = 1
Global Const LC_SORTED_DESCENDING = 2

' SortState property settings
Global Const LC_SORTSTATE_ACTIVE = 0
Global Const LC_SORTSTATE_ACTIVE_RESORT = 1
Global Const LC_SORTSTATE_ACTIVE_SUSPEND = 2

' Style property settings
Global Const CBX_STYLE_DROPDOWN_COMBO = 0
Global Const CBX_STYLE_SIMPLE_COMBO = 1
Global Const CBX_STYLE_DROPDOWN_LIST = 2

' TextOrientation property settings
Global Const LC_TEXTORIENTATION_DEFAULT = 0
Global Const LC_TEXTORIENTATION_HORIZONTAL = 1
Global Const LC_TEXTORIENTATION_VERTICAL_LTR = 2
Global Const LC_TEXTORIENTATION_ROTATE_DOWN = 3
Global Const LC_TEXTORIENTATION_ROTATE_UP = 4
Global Const LC_TEXTORIENTATION_INVERT = 5
Global Const LC_TEXTORIENTATION_VERTICAL_RTL = 6

' ThreeDInsideStyle property settings
Global Const LC_THREEDINSIDESTYLE_NONE = 0
Global Const LC_THREEDINSIDESTYLE_LOWERED = 1
Global Const LC_THREEDINSIDESTYLE_RAISED = 2

' ThreeDOutsideStyle property settings
Global Const LC_THREEDOUTSIDESTYLE_NONE = 0
Global Const LC_THREEDOUTSIDESTYLE_LOWERED = 1
Global Const LC_THREEDOUTSIDESTYLE_RAISED = 2

' MouseOverArea property settings
Global Const CBX_MOUSEOVERAREA_NONE = 0
Global Const CBX_MOUSEOVERAREA_BUTTON = 1
Global Const CBX_MOUSEOVERAREA_EDIT = 2
Global Const CBX_MOUSEOVERAREA_LIST = 3

' Custom function parameter types used with LP_GetMaxSize method
'Method parameter
Global Const FP_MAXSIZEMETHOD_BASIC = 0
Global Const FP_MAXSIZEMETHOD_TEXT = 1
Global Const FP_MAXSIZEMETHOD_PICT = 2
Global Const FP_MAXSIZEMETHOD_TEXTPICT = 3
'Units parameter
Global Const FP_MAXSIZEUNITS_PIXELS = 1
Global Const FP_MAXSIZEUNITS_ROW = 2

' Custom function parameter types used with LP_GetCellPos method
'Units parameter
Global Const FP_CELLPOSUNITS_PIXELS = 1

' Function prototypes
Declare Function ListPro_GetControlhWnd Lib "flpvbx20.vbx" (hCtl As Control) As Long

' ********** Uncomment if using the VBX **********
' Declare Function LP_GetMaxSize Lib "flpvbx20.vbx" (hCtlList As Control, ByVal nCol As Integer, ByVal lRow As Long, ByVal Method As Integer, ByVal Units As Integer) As Long
' Declare Function LP_GetCellPos Lib "flpvbx20.vbx" (hCtlList As Control, ByVal nCol As Integer, ByVal lRow As Long, lpx As Long, lpy As Long, lpWidth As Long, lpHeight As Long, ByVal Units As Integer) as long

' ********** Uncomment if using the OCX **********
' Declare Function LP_GetMaxSize Lib "flp32x20.ocx" (hCtlList As Control, ByVal nCol As Integer, ByVal lRow As Long, ByVal Method As Integer, ByVal Units As Integer) As Long
' Declare Function LP_GetCellPos Lib "flp32x20.ocx" (hCtlList As Control, ByVal nCol As Integer, ByVal lRow As Long, lpx As Long, lpy As Long, lpWidth As Long, lpHeight As Long, ByVal Units As Integer) as long

''''''''''''''''''''''''''''''''''''''''''''''''
' The following are for backward compatibility
''''''''''''''''''''''''''''''''''''''''''''''''

' AwareComboBox Action property values
Global Const CBX_ACTION_SEARCH = 0
Global Const CBX_ACTION_SELECTALL = 1
Global Const CBX_ACTION_DESELECTALL = 2
Global Const CBX_ACTION_CLEAR = 3
Global Const CBX_ACTION_DELETEROW = 4
Global Const CBX_ACTION_FORCEUPDATE = 5
Global Const CBX_ACTION_CLEARSEARCHBUFFER = 6
Global Const CBX_ACTION_INSERTCOL = 7
Global Const CBX_ACTION_DELETECOL = 8

' AwareComboBox AllowColDragDrop property values
Global Const CBX_ALLOWCOLDRAGDROP_OFF = 0
Global Const CBX_ALLOWCOLDRAGDROP_ALLCOLS = 1
Global Const CBX_ALLOWCOLDRAGDROP_NONFROZENCOLS = 2

' AwareComboBox AllowColResize property values
Global Const CBX_ALLOWCOLRESIZE_OFF = 0
Global Const CBX_ALLOWCOLRESIZE_RESIZEHEADER = 1
Global Const CBX_ALLOWCOLRESIZE_RESIZECOLorHEADER = 2

' AwareComboBox BorderStyle property values
Global Const CBX_BORDERSTYLE_NO_BORDER = 0
Global Const CBX_BORDERSTYLE_SINGLE_LINE = 1
Global Const CBX_BORDERSTYLE_ROUNDED = 2
Global Const CBX_BORDERSTYLE_DASH = 3
Global Const CBX_BORDERSTYLE_DOT = 4
Global Const CBX_BORDERSTYLE_DASH_DOT = 5
Global Const CBX_BORDERSTYLE_DASH_DOT_DOT = 6

' AwareComboBox ColAlignH property values
Global Const CBX_COLALIGNH_LEFT = 0
Global Const CBX_COLALIGNH_CENTER = 1
Global Const CBX_COLALIGNH_RIGHT = 2

' AwareComboBox ColDataFieldType property values
Global Const CBX_COLDATAFIELDTYPE_BOOLEAN = 1
Global Const CBX_COLDATAFIELDTYPE_INTEGER = 3
Global Const CBX_COLDATAFIELDTYPE_LONG = 4
Global Const CBX_COLDATAFIELDTYPE_CURRENCY = 5
Global Const CBX_COLDATAFIELDTYPE_SINGLE = 6
Global Const CBX_COLDATAFIELDTYPE_DOUBLE = 7
Global Const CBX_COLDATAFIELDTYPE_TEXT = 10

' AwareComboBox ColHeaderAlignH property values
Global Const CBX_COLHEADERALIGNH_LEFT = 0
Global Const CBX_COLHEADERALIGNH_CENTER = 1
Global Const CBX_COLHEADERALIGNH_RIGHT = 2
Global Const CBX_COLHEADERALIGNH_DEFAULT = 3

' AwareComboBox ColPictureAlignH property values
Global Const CBX_COLPICTUREALIGNH_LEFT = 0
Global Const CBX_COLPICTUREALIGNH_CENTER = 1
Global Const CBX_COLPICTUREALIGNH_RIGHT = 2
Global Const CBX_COLPICTUREALIGNH_LEFTOFTEXT = 3
Global Const CBX_COLPICTUREALIGNH_RIGHTOFTEXT = 4

' AwareComboBox ColSortDataType property values
Global Const CBX_COLSORTDATATYPE_TEXTNOCASE = 0
Global Const CBX_COLSORTDATATYPE_TEXTCASE = 1
Global Const CBX_COLSORTDATATYPE_INTEGER = 2
Global Const CBX_COLSORTDATATYPE_FLOAT = 3

' AwareComboBox ColSorted property values
Global Const CBX_COLSORTED_NONE = 0
Global Const CBX_COLSORTED_ASCENDING = 1
Global Const CBX_COLSORTED_DESCENDING = 2

' AwareComboBox ColumnWidthScale property values
Global Const CBX_COLUMNWIDTHSCALE_TWIPS = 0
Global Const CBX_COLUMNWIDTHSCALE_PIXELS = 1
Global Const CBX_COLUMNWIDTHSCALE_AVG_CHAR_WIDTH = 2
Global Const CBX_COLUMNWIDTHSCALE_MAX_CHAR_WIDTH = 3

' AwareComboBox DataAutoSizeCols property values
Global Const CBX_DATAAUTOSIZECOLS_OFF = 0
Global Const CBX_DATAAUTOSIZECOLS_MAXCOLWIDTH = 1
Global Const CBX_DATAAUTOSIZECOLS_BESTGUESS = 2
Global Const CBX_DATAAUTOSIZECOLS_HEADERWIDTH = 3

' AwareComboBox FieldType property values
Global Const CBX_FIELDTYPE_BOOLEAN = 1
Global Const CBX_FIELDTYPE_INTEGER = 3
Global Const CBX_FIELDTYPE_LONG = 4
Global Const CBX_FIELDTYPE_CURRENCY = 5
Global Const CBX_FIELDTYPE_SINGLE = 6
Global Const CBX_FIELDTYPE_DOUBLE = 7
Global Const CBX_FIELDTYPE_TEXT = 10

' AwareComboBox Header3DStyle property values
Global Const CBX_HEADER3DSTYLE_NONE = 0
Global Const CBX_HEADER3DSTYLE_SOLID = 1
Global Const CBX_HEADER3DSTYLE_3D_LOWERED = 2
Global Const CBX_HEADER3DSTYLE_3D_RAISED = 3

' AwareComboBox Header3DText property values
Global Const CBX_HEADER3DTEXT_NONE = 0
Global Const CBX_HEADER3DTEXT_ETCHED = 1
Global Const CBX_HEADER3DTEXT_LOWERED = 1
Global Const CBX_HEADER3DTEXT_EMBOSSED = 2
Global Const CBX_HEADER3DTEXT_RAISED = 2
Global Const CBX_HEADER3DTEXT_ETCHED_W_SHADING = 3
Global Const CBX_HEADER3DTEXT_LOWERED_W_SHADING = 3
Global Const CBX_HEADER3DTEXT_EMBOSSED_W_SHADING = 4
Global Const CBX_HEADER3DTEXT_RAISED_W_SHADING = 4

' AwareComboHighestPrecedence property values
Global Const CBX_HIGHESTPRECEDENCE_ROW = 0
Global Const CBX_HIGHESTPRECEDENCE_COL = 1
Global Const CBX_HIGHESTPRECEDENCE_COMBINED = 2

' AwareComboBox LineExtV property settings
Global Const CBX_LINEEXTV_AUTO = 0
Global Const CBX_LINEEXTV_PARTIAL = 1
Global Const CBX_LINEEXTV_FULL = 2

' AwareComboBox LineStyleH property values
Global Const CBX_LINESTYLEH_NONE = 0
Global Const CBX_LINESTYLEH_SOLID = 1
Global Const CBX_LINESTYLEH_3D_LOWERED = 2
Global Const CBX_LINESTYLEH_3D_RAISED = 3

' AwareComboBox LineStyleV property values
Global Const CBX_LINESTYLEV_NONE = 0
Global Const CBX_LINESTYLEV_SOLID = 1
Global Const CBX_LINESTYLEV_3D_LOWERED = 2
Global Const CBX_LINESTYLEV_3D_RAISED = 3

' AwareComboBox List3DText property values
Global Const CBX_LIST3DTEXT_NONE = 0
Global Const CBX_LIST3DTEXT_ETCHED = 1
Global Const CBX_LIST3DTEXT_LOWERED = 1
Global Const CBX_LIST3DTEXT_EMBOSSED = 2
Global Const CBX_LIST3DTEXT_RAISED = 2
Global Const CBX_LIST3DTEXT_ETCHED_W_SHADING = 3
Global Const CBX_LIST3DTEXT_LOWERED_W_SHADING = 3
Global Const CBX_LIST3DTEXT_EMBOSSED_W_SHADING = 4
Global Const CBX_LIST3DTEXT_RAISED_W_SHADING = 4

' AwareComboBox MousePointer property values
Global Const CBX_MOUSEPOINTER_DEFAULT = 0
Global Const CBX_MOUSEPOINTER_ARROW = 1
Global Const CBX_MOUSEPOINTER_CROSS = 2
Global Const CBX_MOUSEPOINTER_I_BEAM = 3
Global Const CBX_MOUSEPOINTER_ICON = 4
Global Const CBX_MOUSEPOINTER_SIZE = 5
Global Const CBX_MOUSEPOINTER_SIZE_NE_SW = 6
Global Const CBX_MOUSEPOINTER_SIZE_N_S = 7
Global Const CBX_MOUSEPOINTER_SIZE_NW_SE = 8
Global Const CBX_MOUSEPOINTER_SIZE_W_E = 9
Global Const CBX_MOUSEPOINTER_UP_ARROW = 10
Global Const CBX_MOUSEPOINTER_HOURGLASS = 11
Global Const CBX_MOUSEPOINTER_NO_DROP = 12

' AwareComboBox RowPictureAlighH property values
Global Const CBX_ROWPICTUREALIGNH_LEFT = 0
Global Const CBX_ROWPICTUREALIGNH_CENTER = 1
Global Const CBX_ROWPICTUREALIGNH_RIGHT = 2
Global Const CBX_ROWPICTUREALIGNH_LEFT_OF_TEXT = 3
Global Const CBX_ROWPICTUREALIGNH_RIGHT_OF_TEXT = 4

' AwareComboBox ScrollBar property values
Global Const CBX_SCROLLBAR_SHOW = 0
Global Const CBX_SCROLLBAR_SHOW_WHEN_NEEDED = 1
Global Const CBX_SCROLLBAR_SHOW_DISABLED = 2
Global Const CBX_SCROLLBAR_HIDE = 3

' AwareComboBox ScrollBars property values
Global Const CBX_SCROLLBARS_NONE = 0
Global Const CBX_SCROLLBARS_HORIZONTAL = 1
Global Const CBX_SCROLLBARS_VERTICAL = 2
Global Const CBX_SCROLLBARS_BOTH = 3

' AwareComboBox ScrollHScale property values
Global Const CBX_SCROLLHSCALE_TWIPS = 0
Global Const CBX_SCROLLHSCALE_PIXELS = 1
Global Const CBX_SCROLLHSCALE_AVG_CHAR = 2
Global Const CBX_SCROLLHSCALE_MAX_CHAR = 3
Global Const CBX_SCROLLHSCALE_COLUMN = 4

' AwareComboBox SearchMethod property values
Global Const CBX_SEARCHMETHOD_EXACT_MATCH = 0
Global Const CBX_SEARCHMETHOD_EXACT = 0
Global Const CBX_SEARCHMETHOD_GREATER = 1
Global Const CBX_SEARCHMETHOD_PARTIAL = 2

' AwareComboBox Sel3DStyle property values
Global Const CBX_SEL3DSTYLE_NONE = 0
Global Const CBX_SEL3DSTYLE_LOWERED = 1
Global Const CBX_SEL3DSTYLE_RAISED = 2

' AwareComboBox Sorted property values
Global Const CBX_SORTED_NONE = 0
Global Const CBX_SORTED_ASCENDING = 1
Global Const CBX_SORTED_DESCENDING = 2

' AwareComboBox SortState property values
Global Const CBX_SORTSTATE_ACTIVE = 0
Global Const CBX_SORTSTATE_ACTIVE_RESORT = 1
Global Const CBX_SORTSTATE_ACTIVE_SUSPEND = 2

' AwareComboBox VirtualRequest values
Global Const CBX_VIRTACTION_ISHOME = 0
Global Const CBX_VIRTACTION_ISEND = 1
Global Const CBX_VIRTACTION_DOWN = 2
Global Const CBX_VIRTACTION_UP = 3
Global Const CBX_VIRTACTION_HOME = 4
Global Const CBX_VIRTACTION_END = 5
Global Const CBX_VIRTACTION_REFRESH = 6
Global Const CBX_VIRTACTION_ROWSREMOVED = 7
Global Const CBX_VIRTACTION_POS = 8

' AwareComboBox ThreeDInsideStyle property values
Global Const CBX_THREEDINSIDESTYLE_NONE = 0
Global Const CBX_THREEDINSIDESTYLE_LOWERED = 1
Global Const CBX_THREEDINSIDESTYLE_RAISED = 2

' AwareComboBox ThreeDOutsideStyle property values
Global Const CBX_THREEDOUTSIDESTYLE_NONE = 0
Global Const CBX_THREEDOUTSIDESTYLE_LOWERED = 1
Global Const CBX_THREEDOUTSIDESTYLE_RAISED = 2


' AwareListBox AutoSearch property values
Global Const LBX_AUTOSEARCH_NONE = 0
Global Const LBX_AUTOSEARCH_SINGLE_CHAR = 1
Global Const LBX_AUTOSEARCH_MULTIPLE_CHAR = 2
Global Const LBX_AUTOSEARCH_SINGLE_GREATER = 3

Global Const LBX_AUTOSEARCH_SINGLECHAR = 1
Global Const LBX_AUTOSEARCH_MULTIPLECHAR = 2
Global Const LBX_AUTOSEARCH_SINGLECHARGREATER = 3

' AwareListBox ColAlignH property values
Global Const LBX_COLALIGNH_LEFT = 0
Global Const LBX_COLALIGNH_CENTER = 1
Global Const LBX_COLALIGNH_RIGHT = 2

' AwareListBox ColDataFieldType property values
Global Const LBX_COLDATAFIELDTYPE_BOOLEAN = 1
Global Const LBX_COLDATAFIELDTYPE_INTEGER = 3
Global Const LBX_COLDATAFIELDTYPE_LONG = 4
Global Const LBX_COLDATAFIELDTYPE_CURRENCY = 5
Global Const LBX_COLDATAFIELDTYPE_SINGLE = 6
Global Const LBX_COLDATAFIELDTYPE_DOUBLE = 7
Global Const LBX_COLDATAFIELDTYPE_TEXT = 10

' AwareListBox ColHeaderAlignH property values
Global Const LBX_COLHEADERALIGNH_LEFT = 0
Global Const LBX_COLHEADERALIGNH_CENTER = 1
Global Const LBX_COLHEADERALIGNH_RIGHT = 2
Global Const LBX_COLHEADERALIGNH_DEFAULT = 3

' AwareListBox ColumnWidthScale property values
Global Const LBX_COLUMNWIDTHSCALE_TWIPS = 0
Global Const LBX_COLUMNWIDTHSCALE_PIXELS = 1
Global Const LBX_COLUMNWIDTHSCALE_AVG_CHAR_WIDTH = 2
Global Const LBX_COLUMNWIDTHSCALE_MAX_CHAR_WIDTH = 3

' AwareListBox FieldType property values
Global Const LBX_FIELDTYPE_BOOLEAN = 1
Global Const LBX_FIELDTYPE_INTEGER = 3
Global Const LBX_FIELDTYPE_LONG = 4
Global Const LBX_FIELDTYPE_CURRENCY = 5
Global Const LBX_FIELDTYPE_SINGLE = 6
Global Const LBX_FIELDTYPE_DOUBLE = 7
Global Const LBX_FIELDTYPE_TEXT = 10

' AwareListBox Header3DStyle property values
Global Const LBX_HEADER3DSTYLE_NONE = 0
Global Const LBX_HEADER3DSTYLE_SOLID = 1
Global Const LBX_HEADER3DSTYLE_3D_LOWERED = 2
Global Const LBX_HEADER3DSTYLE_3D_RAISED = 3

' AwareListBox Header3DText property values
Global Const LBX_HEADER3DTEXT_NONE = 0
Global Const LBX_HEADER3DTEXT_ETCHED = 1
Global Const LBX_HEADER3DTEXT_LOWERED = 1
Global Const LBX_HEADER3DTEXT_EMBOSSED = 2
Global Const LBX_HEADER3DTEXT_RAISED = 2
Global Const LBX_HEADER3DTEXT_ETCHED_W_SHADING = 3
Global Const LBX_HEADER3DTEXT_LOWERED_W_SHADING = 3
Global Const LBX_HEADER3DTEXT_EMBOSSED_W_SHADING = 4
Global Const LBX_HEADER3DTEXT_RAISED_W_SHADING = 4

' AwareListBox LineExtV property settings
Global Const LBX_LINEEXTV_AUTO = 0
Global Const LBX_LINEEXTV_PARTIAL = 1
Global Const LBX_LINEEXTV_FULL = 2

' AwareListBox LineStyleH property values
Global Const LBX_LINESTYLEH_NONE = 0
Global Const LBX_LINESTYLEH_SOLID = 1
Global Const LBX_LINESTYLEH_3D_LOWERED = 2
Global Const LBX_LINESTYLEH_3D_RAISED = 3

' AwareListBox LineStyleV property values
Global Const LBX_LINESTYLEV_NONE = 0
Global Const LBX_LINESTYLEV_SOLID = 1
Global Const LBX_LINESTYLEV_3D_LOWERED = 2
Global Const LBX_LINESTYLEV_3D_RAISED = 3

' AwareListBox List3DText property values
Global Const LBX_LIST3DTEXT_NONE = 0
Global Const LBX_LIST3DTEXT_ETCHED = 1
Global Const LBX_LIST3DTEXT_LOWERED = 1
Global Const LBX_LIST3DTEXT_EMBOSSED = 2
Global Const LBX_LIST3DTEXT_RAISED = 2
Global Const LBX_LIST3DTEXT_ETCHED_W_SHADING = 3
Global Const LBX_LIST3DTEXT_LOWERED_W_SHADING = 3
Global Const LBX_LIST3DTEXT_EMBOSSED_W_SHADING = 4
Global Const LBX_LIST3DTEXT_RAISED_W_SHADING = 4

' AwareListBox MousePointer property values
Global Const LBX_MOUSEPOINTER_DEFAULT = 0
Global Const LBX_MOUSEPOINTER_ARROW = 1
Global Const LBX_MOUSEPOINTER_CROSS = 2
Global Const LBX_MOUSEPOINTER_I_BEAM = 3
Global Const LBX_MOUSEPOINTER_ICON = 4
Global Const LBX_MOUSEPOINTER_SIZE = 5
Global Const LBX_MOUSEPOINTER_SIZE_NE_SW = 6
Global Const LBX_MOUSEPOINTER_SIZE_N_S = 7
Global Const LBX_MOUSEPOINTER_SIZE_NW_SE = 8
Global Const LBX_MOUSEPOINTER_SIZE_W_E = 9
Global Const LBX_MOUSEPOINTER_UP_ARROW = 10
Global Const LBX_MOUSEPOINTER_HOURGLASS = 11
Global Const LBX_MOUSEPOINTER_NO_DROP = 12

' AwareListBox ScrollBars property values
Global Const LBX_SCROLLBARS_NONE = 0
Global Const LBX_SCROLLBARS_HORIZONTAL = 1
Global Const LBX_SCROLLBARS_VERTICAL = 2
Global Const LBX_SCROLLBARS_BOTH = 3

' AwareListBox SearchMethod property values
Global Const LBX_SEARCHMETHOD_EXACT_MATCH = 0
Global Const LBX_SEARCHMETHOD_EXACT = 0
Global Const LBX_SEARCHMETHOD_GREATER = 1
Global Const LBX_SEARCHMETHOD_PARTIAL = 2

' AwareListBox Sel3DStyle property values
Global Const LBX_SEL3DSTYLE_NONE = 0
Global Const LBX_SEL3DSTYLE_LOWERED = 1
Global Const LBX_SEL3DSTYLE_RAISED = 2

' AwareListBox Sorted property values
Global Const LBX_SORTED_NONE = 0
Global Const LBX_SORTED_ASCENDING = 1
Global Const LBX_SORTED_DESCENDING = 2

' AwareListBox Action property values
Global Const LBX_ACTION_SEARCH = 0
Global Const LBX_ACTION_SELECTALL = 1
Global Const LBX_ACTION_DESELECTALL = 2
Global Const LBX_ACTION_CLEAR = 3
Global Const LBX_ACTION_DELETEROW = 4
Global Const LBX_ACTION_FORCEUPDATE = 5
Global Const LBX_ACTION_CLEARSEARCHBUFFER = 6
Global Const LBX_ACTION_INSERTCOL = 7
Global Const LBX_ACTION_DELETECOL = 8

' AwareListBox DataSync property values
Global Const LBX_DATASYNC_NONE = 0
Global Const LBX_DATASYNC_UPDATE_DATA = 1
Global Const LBX_DATASYNC_UPDATE_BOUND = 2
Global Const LBX_DATASYNC_UPDATE_BOTH = 3

' AwareListBox ScrollHScale property values
Global Const LBX_SCROLLHSCALE_TWIPS = 0
Global Const LBX_SCROLLHSCALE_PIXELS = 1
Global Const LBX_SCROLLHSCALE_AVG_CHAR = 2
Global Const LBX_SCROLLHSCALE_MAX_CHAR = 3
Global Const LBX_SCROLLHSCALE_COLUMN = 4

' AwareListBox ScrollBar property values
Global Const LBX_SCROLLBAR_SHOW = 0
Global Const LBX_SCROLLBAR_SHOW_WHEN_NEEDED = 1
Global Const LBX_SCROLLBAR_SHOW_DISABLED = 2
Global Const LBX_SCROLLBAR_HIDE = 3

' AwareListBox HighestPrecedence property values
Global Const LBX_HIGHESTPRECEDENCE_ROW = 0
Global Const LBX_HIGHESTPRECEDENCE_COL = 1
Global Const LBX_HIGHESTPRECEDENCE_COMBINED = 2

' AwareListBox PictureAlighH property values
Global Const LBX_PICTUREALIGNH_LEFT = 0
Global Const LBX_PICTUREALIGNH_CENTER = 1
Global Const LBX_PICTUREALIGNH_RIGHT = 2
Global Const LBX_PICTUREALIGNH_LEFT_OF_TEXT = 3
Global Const LBX_PICTUREALIGNH_RIGHT_OF_TEXT = 4

' AwareListBox AllowColResize property values
Global Const LBX_ALLOWCOLRESIZE_OFF = 0
Global Const LBX_ALLOWCOLRESIZE_RESIZE_HEADER = 1
Global Const LBX_ALLOWCOLRESIZE_RESIZE_COL = 2

' AwareListBox AllowDragDrop property values
Global Const LBX_ALLOWDRAGDROP_OFF = 0
Global Const LBX_ALLOWDRAGDROP_ALL_COLS = 1
Global Const LBX_ALLOWDRAGDROP_NON_FROZEN_COLS = 2

' AwareListBox DataAutoSizeCols property values
Global Const LBX_DATAAUTOSIZECOLS_OFF = 0
Global Const LBX_DATAAUTOSIZECOLS_MAXCOLWIDTH = 1
Global Const LBX_DATAAUTOSIZECOLS_BESTGUESS = 2
Global Const LBX_DATAAUTOSIZECOLS_HEADERWIDTH = 3

' AwareListBox ColSortDataType property values
Global Const LBX_COLSORTDATATYPE_TEXT_NOCASE = 0
Global Const LBX_COLSORTDATATYPE_TEXT_CASE = 1
Global Const LBX_COLSORTDATATYPE_INTEGER = 2
Global Const LBX_COLSORTDATATYPE_FLOAT = 3

' AwareListBox SortState property values
Global Const LBX_SORTSTATE_ACTIVE = 0
Global Const LBX_SORTSTATE_ACTIVE_RESORT = 1
Global Const LBX_SORTSTATE_ACTIVE_SUSPEND = 2

' AwareListBox VirtualRequest values
Global Const LBX_VIRTACTION_ISHOME = 0
Global Const LBX_VIRTACTION_ISEND = 1
Global Const LBX_VIRTACTION_DOWN = 2
Global Const LBX_VIRTACTION_UP = 3
Global Const LBX_VIRTACTION_HOME = 4
Global Const LBX_VIRTACTION_END = 5
Global Const LBX_VIRTACTION_REFRESH = 6
Global Const LBX_VIRTACTION_ROWSREMOVED = 7
Global Const LBX_VIRTACTION_POS = 8

' Function Prototype

Declare Function AWARELC_GetControlhWnd Lib "flpvbx20.vbx" (hCtl As Control) As Long

